package morphage.gui;

import javax.swing.JPanel;
import java.awt.*;
import javax.swing.border.*;

public class AppMainPanel extends JPanel 
{
	private static final long 			serialVersionUID = 1L;
	
	private AppCenterPanel 				m_appCenterPanel;
	private AppRightPanel 				m_appRightPanel;
	private AppToolbar            m_appToolbar;
	
	public AppMainPanel()
	{
		m_appCenterPanel 		= new AppCenterPanel();
		m_appToolbar        = new AppToolbar();
		setBorder(new EmptyBorder(4,4,4,0));
		setLayout(new BorderLayout());
		m_appRightPanel 	= new AppRightPanel();
		add("North",     m_appToolbar);
		add("Center", 	 m_appCenterPanel);
		add("East", 	   m_appRightPanel);
	}
	
	void exit() 
	{
	    System.exit(0);
	}
}
